package com.example.api.mapper;

import com.example.api.pojo.Flavor;
import com.example.api.query.FlavorQuery;
import com.example.api.vo.FlavorVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FlavorMapper {
    List<FlavorVO> find(FlavorQuery flavorQuery);

    void add(Flavor flavor);

    void update(Flavor flavor);

    @Delete("delete from t_flavor where id = #{id}")
    void deleteById(long id);
}